﻿using System.Windows.Forms;

namespace Marmat.Forms
{
    public class PropertyValueEventArgs
    {

        /// <summary>
        /// 属性对象所关联的控件
        /// </summary>
        /// <value></value>
        /// <returns></returns>
        /// <remarks></remarks>
        public Control Control { get; set; }

        /// <summary>
        /// 用于筛选的值
        /// </summary>
        /// <value></value>
        /// <returns></returns>
        /// <remarks></remarks>
        public object Value { get; set; }

        /// <summary>
        /// 逻辑(Boolean)类型，设为True取消更改。
        /// </summary>
        /// <value></value>
        /// <returns></returns>
        /// <remarks></remarks>
        public bool Cancel { get; set; } = false;
    }
}